package org.butterfly.irms.model.mapstruct;

import org.butterfly.irms.model.po.RegionPO;
import org.butterfly.irms.model.vo.RegionVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * region model po to vo
 *
 * @author drake
 * @since 2021/9/5
 */
@Mapper
public interface RegionMapper {
    RegionMapper INSTANCE = Mappers.getMapper(RegionMapper.class);

    RegionVO toVo(RegionPO regionPO);

    List<RegionVO> toVoList(List<RegionPO> regionPOList);
}
